package vip.afeng.rpgclient.model;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import vip.afeng.rpgclient.base.Actor;
import vip.afeng.rpgclient.base.Controller;
import vip.afeng.rpgclient.util.GenerateID;

import javax.annotation.PostConstruct;

/**
 * @datetime: 2020/7/20 20:38
 * @project_name: afeng-rpg
 * @author: afeng
 */
@Component
public class Character extends Actor {

    /**
     * 事件机制:
     * 事件--> 监听 --> 处理
     */
    @Autowired
    Controller controller;

    /**
     * 远程服务器
     * XX xx;
     */

    @PostConstruct
    public void init(){
        setPid(GenerateID.getPid());
        // 向服务器注册
        // xx.register()
    }


}
